<template>
  <div class="form-info-container">
    <el-form :inline="true" class="demo-form-inline">
      <el-form-item label="商品分类:">
        <el-select v-model="platformType" placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="平台类型:" class="space">
        <el-select v-model="platformType" placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="选择店铺:" class="space">
        <el-select v-model="platformType" placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </el-form-item>
    </el-form>
    <el-form :inline="true" class="demo-form-inline flex">
      <el-form-item label="商品名称:" prop="name" class="goods-name-box">
        <el-input placeholder="输入订单号" />
      </el-form-item>
      <el-form-item label="更新状态:" class="space">
        <el-select v-model="platformType" placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="上架状态:" class="space">
        <el-select v-model="platformType" placeholder="请选择">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
      </el-form-item>
    </el-form>
    <el-form>
      <el-form-item class="search-btn-box">
        <div class="search-btn cursor-p font-14 flex flex-center">查询</div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'

export default defineComponent({
  setup() {
    const btnList:string[] = ['今', '昨', '7天', '1个月', '3个月']
    const btnIndex = ref(0)
    const platformType = ref('')
    const changeBtn = (index:number):void => {
      btnIndex.value = index
    }
    return {
      btnList,
      btnIndex,
      changeBtn,
      platformType
    }
  }
})
</script>

<style lang="scss" scoped>
.form-info-container {
  // padding-bottom: 24px;
  border-bottom: 1px solid #F5F6FA;
  .space {
    margin-left: 59px;
  }
  .goods-name-box {
    ::v-deep(.el-input__inner) {
      width: 223px !important;
    }
  }
  .btn-box {
    border: 1px solid #DCDFE6;
    border-radius: 4px;
  }
  .active-btn-box {
    color: #2DE2DD;
    background: #0C213F;
  }
  .disactive-btn-box {
    color: #323233;
    background: #fff;
  }
  .search-btn-box {
    margin-left: 70px;
    .search-btn {
      width: 68px;
      height: 40px;
      background: #0C213F;
      border-radius: 4px;
      color: #fff;
    }
  }

}
</style>
